﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Script.Serialization;

namespace Sentiment
{
    public static class Extentions
    {
        public static T FromJson<T> (this String str)
        {
            JavaScriptSerializer ser = new JavaScriptSerializer();
            return ser.Deserialize<T>(str);
        }
    }
}
